Optimal. Leaf size=48 \[ \frac{e (c+d x)^2 \left (a+b \tan ^{-1}(c+d x)\right )}{2 d}+\frac{b e \tan ^{-1}(c+d x)}{2 d}-\frac{b e x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0302586, antiderivative size = 48, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.263, Rules used = {5043, 12, 4852, 321, 203} \[ \frac{e (c+d x)^2 \left (a+b \tan ^{-1}(c+d x)\right )}{2 d}+\frac{b e \tan ^{-1}(c+d x)}{2 d}-\frac{b e x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5043
Rule 12
Rule 4852
Rule 321
Rule 203
Rubi steps
\begin{align*} \int (c e+d e x) \left (a+b \tan ^{-1}(c+d x)\right ) \, dx &=\frac{\operatorname{Subst}\left (\int e x \left (a+b \tan ^{-1}(x)\right ) \, dx,x,c+d x\right )}{d}\\ &=\frac{e \operatorname{Subst}\left (\int x \left (a+b \tan ^{-1}(x)\right ) \, dx,x,c+d x\right )}{d}\\ &=\frac{e (c+d x)^2 \left (a+b \tan ^{-1}(c+d x)\right )}{2 d}-\frac{(b e) \operatorname{Subst}\left (\int \frac{x^2}{1+x^2} \, dx,x,c+d x\right )}{2 d}\\ &=-\frac{1}{2} b e x+\frac{e (c+d x)^2 \left (a+b \tan ^{-1}(c+d x)\right )}{2 d}+\frac{(b e) \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,c+d x\right )}{2 d}\\ &=-\frac{1}{2} b e x+\frac{b e \tan ^{-1}(c+d x)}{2 d}+\frac{e (c+d x)^2 \left (a+b \tan ^{-1}(c+d x)\right )}{2 d}\\ \end{align*}
Mathematica [A] time = 0.0120132, size = 40, normalized size = 0.83 \[ \frac{e \left ((c+d x)^2 \left (a+b \tan ^{-1}(c+d x)\right )+b \left (\tan ^{-1}(c+d x)-d x\right )\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.036, size = 92, normalized size = 1.9 \begin{align*}{\frac{d{x}^{2}ae}{2}}+xace+{\frac{a{c}^{2}e}{2\,d}}+{\frac{d\arctan \left ( dx+c \right ){x}^{2}be}{2}}+\arctan \left ( dx+c \right ) xbce+{\frac{\arctan \left ( dx+c \right ) b{c}^{2}e}{2\,d}}-{\frac{bex}{2}}-{\frac{bce}{2\,d}}+{\frac{be\arctan \left ( dx+c \right ) }{2\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.49881, size = 162, normalized size = 3.38 \begin{align*} \frac{1}{2} \, a d e x^{2} + \frac{1}{2} \,{\left (x^{2} \arctan \left (d x + c\right ) - d{\left (\frac{x}{d^{2}} + \frac{{\left (c^{2} - 1\right )} \arctan \left (\frac{d^{2} x + c d}{d}\right )}{d^{3}} - \frac{c \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )}{d^{3}}\right )}\right )} b d e + a c e x + \frac{{\left (2 \,{\left (d x + c\right )} \arctan \left (d x + c\right ) - \log \left ({\left (d x + c\right )}^{2} + 1\right )\right )} b c e}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.54816, size = 139, normalized size = 2.9 \begin{align*} \frac{a d^{2} e x^{2} +{\left (2 \, a c - b\right )} d e x +{\left (b d^{2} e x^{2} + 2 \, b c d e x +{\left (b c^{2} + b\right )} e\right )} \arctan \left (d x + c\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.56704, size = 95, normalized size = 1.98 \begin{align*} \begin{cases} a c e x + \frac{a d e x^{2}}{2} + \frac{b c^{2} e \operatorname{atan}{\left (c + d x \right )}}{2 d} + b c e x \operatorname{atan}{\left (c + d x \right )} + \frac{b d e x^{2} \operatorname{atan}{\left (c + d x \right )}}{2} - \frac{b e x}{2} + \frac{b e \operatorname{atan}{\left (c + d x \right )}}{2 d} & \text{for}\: d \neq 0 \\c e x \left (a + b \operatorname{atan}{\left (c \right )}\right ) & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.13934, size = 178, normalized size = 3.71 \begin{align*} \frac{2 \, b d^{2} x^{2} \arctan \left (d x + c\right ) e + 2 \, a d^{2} x^{2} e + 4 \, b c d x \arctan \left (d x + c\right ) e + \pi b c^{2} e \mathrm{sgn}\left (d x + c\right ) - \pi b c^{2} e + 4 \, a c d x e - 2 \, b c^{2} \arctan \left (\frac{1}{d x + c}\right ) e - 2 \, b d x e + \pi b e \mathrm{sgn}\left (d x + c\right ) - \pi b e - 2 \, b \arctan \left (\frac{1}{d x + c}\right ) e}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]